package cn.wolfcode.trip.base.query;


import lombok.*;
import org.springframework.util.StringUtils;

@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class QueryObject {
    private int currentPage = 1;
    private int pageSize = 8;

    private String keyword;
    private String orderBy;

    public String getKeyword(){
        return StringUtils.hasLength(keyword)? keyword : null;
    }
}
